cmake_minimum_required(VERSION 3.16)
project(ObjectDetectPostprocess)

set(CMAKE_CXX_STANDARD 14)

find_package(OpenCV REQUIRED)

include_directories(
        ${OpenCV_INCLUDE_DIRS}
        include/
        )

message(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})

file(GLOB LIB_SRC  src/*.cpp   src/*.h  include/odp/*.h)

add_library(ObjectDetectPostprocess SHARED ${LIB_SRC})
target_link_libraries(ObjectDetectPostprocess ${OpenCV_LIBS})


add_executable(test test/test.cpp)
target_link_libraries(test ObjectDetectPostprocess ${OpenCV_LIBS})